{% extends "base.html" %}

{% block title %}首页 - 算法生成照护计划{% endblock %}

{% block page_title %}算法生成照护计划{% endblock %}

{% block content %}
<div class="row">
    <div class="col-md-12">
        <div class="tech-card">
            <div class="tech-card-header">
                <h5 class="card-title">系统概述</h5>
            </div>
            <div class="tech-card-body">
                <p>算法生成照护计划是一个智能排班系统，用于生成老人的照护计划和护理员的排班表。系统使用先进的算法，包括遗传算法和模拟退火算法，以优化排班结果。</p>
                <p>本系统提供以下主要功能：</p>
                <ul>
                    <li>生成老人的照护计划</li>
                    <li>生成护理员的排班表</li>
                    <li>支持三班制排班</li>
                    <li>支持自定义班次时间</li>
                    <li>支持自定义时间间隔</li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="row mt-4">
    <div class="col-md-6">
        <div class="tech-card">
            <div class="tech-card-header">
                <h5 class="card-title">接口列表</h5>
            </div>
            <div class="tech-card-body">
                <div class="list-group">
                    <a href="{{ url_for('views_page.generate_schedule_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">生成排班</h5>
                            <small><i class="fas fa-calendar-plus"></i></small>
                        </div>
                        <p class="mb-1">生成老人的照护计划和护理员的排班表</p>
                    </a>
                    <a href="{{ url_for('views_page.view_schedule_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">查看排班</h5>
                            <small><i class="fas fa-calendar"></i></small>
                        </div>
                        <p class="mb-1">查看已生成的照护计划</p>
                    </a>
                    <a href="{{ url_for('views_page.three_shift_schedule_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">三班制排班</h5>
                            <small><i class="fas fa-calendar-alt"></i></small>
                        </div>
                        <p class="mb-1">使用三班制生成排班计划</p>
                    </a>
                    <a href="{{ url_for('views_page.simple_three_shift_schedule_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">简化版三班制排班</h5>
                            <small><i class="fas fa-calendar-check"></i></small>
                        </div>
                        <p class="mb-1">使用简化版三班制生成排班计划</p>
                    </a>
                    <a href="{{ url_for('views_page.import_excel_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">导入Excel生成照护时间线</h5>
                            <small><i class="fas fa-file-excel"></i></small>
                        </div>
                        <p class="mb-1">通过导入Excel文件生成护理员排班表和老人的照护时间线</p>
                    </a>
                </div>
            </div>
        </div>
    </div>
    
    <div class="col-md-6">
        <div class="tech-card">
            <div class="tech-card-header">
                <h5 class="card-title">数据查询</h5>
            </div>
            <div class="tech-card-body">
                <div class="list-group">
                    <a href="{{ url_for('views_page.nursing_actions_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">护理动作</h5>
                            <small><i class="fas fa-notes-medical"></i></small>
                        </div>
                        <p class="mb-1">查看所有护理动作</p>
                    </a>
                    <a href="{{ url_for('views_page.elders_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">老人信息</h5>
                            <small><i class="fas fa-user-friends"></i></small>
                        </div>
                        <p class="mb-1">查看所有老人信息</p>
                    </a>
                    <a href="{{ url_for('views_page.caregivers_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">护理员信息</h5>
                            <small><i class="fas fa-user-nurse"></i></small>
                        </div>
                        <p class="mb-1">查看所有护理员信息</p>
                    </a>
                    <a href="{{ url_for('views_page.config_params_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">配置参数</h5>
                            <small><i class="fas fa-cogs"></i></small>
                        </div>
                        <p class="mb-1">查看系统配置参数</p>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row mt-4">
    <div class="col-md-12">
        <div class="tech-card">
            <div class="tech-card-header">
                <h5 class="card-title">排班结果查询</h5>
            </div>
            <div class="tech-card-body">
                <div class="list-group">
                    <a href="{{ url_for('views_page.shift_assignments_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">护理员排班表</h5>
                            <small><i class="fas fa-clipboard-list"></i></small>
                        </div>
                        <p class="mb-1">查看护理员排班表</p>
                    </a>
                    <a href="{{ url_for('views_page.schedule_results_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">照护计划总表</h5>
                            <small><i class="fas fa-clipboard-check"></i></small>
                        </div>
                        <p class="mb-1">查看照护计划总表</p>
                    </a>
                    <a href="{{ url_for('views_page.time_slots_page') }}" class="list-group-item list-group-item-action tech-nav-link">
                        <div class="d-flex w-100 justify-content-between">
                            <h5 class="mb-1">照护计划分表</h5>
                            <small><i class="fas fa-clock"></i></small>
                        </div>
                        <p class="mb-1">查看照护计划分表</p>
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
